package _02011

func removeDuplicated(nums []int) {
	k := 0

	for i := 0; i < len(nums); i++ {
		if nums[k] != nums[i] {
			nums[k+1] = nums[i]
			k += 1
		}
	}
}
